<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
    <title>落地页</title>
    <style>
        html,
        body {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            overflow-x: hidden;
        }

        .main {
            width: 100%;
            height: 162.5vw;
            background-image: url('./pcimg/bj.jpg');
            background-size: 100% 100%;
            background-repeat: no-repeat;
            width: 100%;
            overflow-x: hidden;
        }

        .first {
            display: flex;
            align-items: stretch;
        }

        .first-item {
            flex: 1;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            position: relative;
        }

        .rank {
            font-size: 1vw;
            font-weight: 600;
            color: #FCE86E;
            font-style: italic;
            display: flex;
            align-items: center;
            width: 100%;
            justify-content: flex-end;
            height: 3.8vw;
            position: relative;
            text-align: right;
        }

        .rank .name {
            color: #111;
            width: 6vw;
        }

        .rank .num {
            flex: 1;
            padding-right: 0.2vw;
        }

        .reverse-item {
            box-sizing: border-box;
            padding: 5vw 0 0 5.8vw;
        }

        .reverse-item .rank {
            flex-direction: row-reverse;
            text-align: left;
        }

        .form {
            width: 35vw;
            height: 26.6vw;
            background-image: url('./pcimg/srk_bj.png');
            background-size: 100% 100%;
            position: relative;
        }

        .form .item {
            position: relative;
            height: 2vw;
            width: 26vw;
            margin: 0 auto 1.5vw auto;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .item .ipt {
            flex: 1;
            font-size: 1vw;
            border: none;
            outline: none;
            background-color: rgba(0, 0, 0, 0);
        }

        .item .icon {
            width: 2vw;
            height: 2vw;
            margin: 0 1vw;
        }

        .item .hidden_icon {
            width: 0;
            height: 0;
            margin: 0;
        }

        .item .otp {
            width: 7vw;
            height: 2vw;
        }

        .item .otp img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .tab {
            position: relative;
            width: 25vw;
            height: 3.4vw;
            margin: 4.2vw auto 0.8vw auto;
        }

        .submit {
            width: 24vw;
            height: 6.4vw;
            bottom: -2vw;
            left: 50%;
            transform: translateX(-50%);
            position: absolute;
        }

        /* 轮播 */
        .swiper {
            position: relative;
            overflow: hidden;
            width: 20vw;
            margin: 0 0 0 1vw;
        }

        .swiper_box {
            height: 34.88vw;
            display: flex;
            align-items: center;
            transition: all ease .3s;
        }

        .swiper_item {
            width: 20vw;
            height: 31.7vw;
        }

        .swiper_dots {
            width: 20vw;
            height: 1vw;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            top: -1vw;
        }

        .swiper_dot {
            width: 0.7vw;
            height: 0.7vw;
            border-radius: 50%;
            background-color: #fff;
            border: 0.1vw solid #7BFDFF;
            margin: 0 0.4vw;
            opacity: 0.5;
        }

        .active_dot {
            opacity: 1 !important;
        }

        /* swiper2 */
        .swiper2 {
            width: 90vw;
            margin: 3.5vw auto;
            overflow: hidden;
        }

        .swiper2_box {
            height: 18.5vw;
            display: flex;
            align-items: center;
            transition: all ease .3s;
        }

        .swiper2_item {
            width: 30vw;
            height: 18.5vw;
        }

        .swiper2_dots {
            width: 90vw;
            height: 1vw;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .swiper2_dot {
            width: 0.7vw;
            height: 0.7vw;
            border-radius: 50%;
            background-color: #fff;
            border: 0.1vw solid #7BFDFF;
            margin: 0 0.4vw;
            opacity: 0.5;
        }
    </style>
    <script>
        function isMobile() {
            const mobileRegex = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;
            return mobileRegex.test(navigator.userAgent);
        }
        if (isMobile()) {
            location.href = './h5.html'
        }
    </script>
    <script src="./js/EncodeUtils.js"></script>
    <script src="./js/fp.min.js"></script>
</head>

<body>
    <div class="main">

        <!-- first -->
        <div class="first">
            <div class="first-item" style="align-items: flex-start;padding-left: 2vw;">
                <div class="top-item"
                    style="margin-top:17.8vw;width: 28vw;height:18.44vw;background-image: url('./pcimg/zcphb_zc.png');background-size: 100% 100%;padding-top:5vw;box-sizing: border-box;padding-right: 5.9vw;">
                    <div class="rank">
                        <div class="num">12312312331</div>
                        <div class="name">ABBBCCC</div>
                    </div>
                    <div class="rank" style="right:1.05vw">
                        <div class="num">12312312331</div>
                        <div class="name">ABBBCCC</div>
                    </div>
                    <div class="rank" style="right:2.1vw">
                        <div class="num">12312312331</div>
                        <div class="name">ABBBCCC</div>
                    </div>
                </div>
                <!-- swiper -->
                <div class="swiper">
                    <div class="swiper_box">
                        <img class="swiper_item" src="./pcimg/zchdt_zc.png" alt="img">
                        <img class="swiper_item" src="./pcimg/zchdt_zc.png" alt="img">
                        <img class="swiper_item" src="./pcimg/zchdt_zc.png" alt="img">
                        <img class="swiper_item" src="./pcimg/zchdt_zc.png" alt="img">
                    </div>

                    <div class="swiper_dots">
                        <div class="swiper_dot active_dot"></div>
                        <div class="swiper_dot"></div>
                        <div class="swiper_dot"></div>
                        <div class="swiper_dot"></div>
                    </div>
                </div>
                <script>
                    let swiperIndex = 0

                    setInterval(() => {
                        swiperIndex++
                        if (swiperIndex >= 4) {
                            swiperIndex = 0
                        }
                        renderSwiper()
                    }, 3000)

                    function renderSwiper() {
                        const swiper_box = document.querySelector('.swiper_box')
                        swiper_box.style.transform = `translateX(-${swiperIndex * 20}vw)`

                        const swiper_dots = document.querySelector('.swiper_dots')
                        let str = ''
                        for (let i = 0; i < 4; i++) {
                            str += `<div class="swiper_dot ${i == swiperIndex ? 'active_dot' : ''}"></div>`
                        }
                        swiper_dots.innerHTML = str
                    }
                </script>
            </div>
            <div id="main_box" class="first-item" style="padding-bottom: 20vw;">
                <img style="height: 9vw;margin-top: 8vw;" src="./pcimg/logo.png" alt="">
                <img style="height:8.6vw;margin-top: 1.2vw;" src="./pcimg/bt_wz.png" alt="">
                <div class="form">

                    <!-- form tab -->
                    <div class="tab">
                        <img class="tab1" style="position: absolute;z-index: 2;width: 100%;height: 100%;"
                            src="./pcimg/btan_zc.png" alt="img">
                        <img class="tab2" style="position: absolute;z-index: 1;width: 100%;height: 100%;"
                            src="./pcimg/btan_yc.png" alt="img">

                        <img class="register_tab"
                            style="position: absolute;z-index: 3;top: 0.95vw;left: 3.2vw;height: 2vw;width: auto;"
                            src="./pcimg/btan_wzyc.png" alt="img">
                        <img class="login_tab"
                            style="position: absolute;z-index: 3;top:1vw;left: 14.2vw;height: 2vw;width: auto;"
                            src="./pcimg/btan_wzzc.png" alt="img">
                    </div>


                    <!-- item -->
                    <div class="item">
                        <img class="icon" src="./pcimg/yum_icon.png" alt="img">
                        <input id="username" type="text" class="ipt" placeholder="Tên tài khoản">
                    </div>
                    <div class="item">
                        <img class="icon" src="./pcimg/mm_icon.png" alt="img">
                        <input id="password" type="password" class="ipt" placeholder="Mật khẩu">
                        <img id="p_open" class="icon" src="./pcimg/yjg_icon.png" alt="img">
                        <img id="p_close" class="icon hidden_icon" src="./pcimg/yjk_icon.png" alt="img">
                    </div>
                    <div class="item" id="password2Box" style="opacity: 0;">
                        <img class="icon" src="./pcimg/mm_icon.png" alt="img">
                        <input id="password2" type="password" class="ipt" placeholder="Xác nhận mật khẩu">
                        <img id="p2_open" class="icon" src="./pcimg/yjg_icon.png" alt="img">
                        <img id="p2_close" class="icon hidden_icon" src="./pcimg/yjk_icon.png" alt="img">
                    </div>
                    <div class="item">
                        <img class="icon" src="./pcimg/yzm_icon.png" alt="img">
                        <input id="code" type="text" class="ipt" placeholder="Mã xác nhận">
                        <div class="otp" id="otp" onclick="getCode()"></div>
                    </div>

                    <!-- submit -->
                    <div class="submit">
                        <img style="position: relative;z-index: 3;width: 100%;height: 100%;" src="./pcimg/Button_01.png"
                            alt="img">
                        <img onclick="login()" class="login_btn"
                            style="position: absolute;z-index: 5;top: 50%;left: 50%;height: 3vw;transform: translateX(-50%) translateY(-50%);"
                            src="./pcimg/Button_mrwz.png" alt="img">
                        <img onclick="register()" class="register_btn"
                            style="position: absolute;z-index: 1;top: 50%;left: 50%;height: 3vw;transform: translateX(-50%) translateY(-50%);"
                            src="./pcimg/btan_wzyc.png" alt="img">
                    </div>
                </div>

                <img style="position: absolute;bottom: 0;left: 50%;transform: translateX(-50%);height: 15vw;"
                    src="./pcimg/jbxz_btk.png" alt="">
                <div
                    style="position: absolute;bottom: 4.05vw;left: 50%;transform: translateX(-50%);font-size: 2.4vw;font-weight: bold;color: #FAD054;text-shadow: #C20089 0em 0.05em 0.05em">
                    112,334,556,900</div>
            </div>
            <div class="first-item" style="align-items: flex-end;padding-right: 2vw;">
                <div class="top-item reverse-item"
                    style="margin-top:17.8vw;width: 28vw;height:18.44vw;background-image: url('./pcimg/ycphb_yc.png');background-size: 100% 100%;">
                    <div class="rank">
                        <div class="num">12312312331</div>
                        <div class="name">ABBBCCC</div>
                    </div>
                    <div class="rank" style="left:1.05vw">
                        <div class="num">12312312331</div>
                        <div class="name">ABBBCCC</div>
                    </div>
                    <div class="rank" style="left:2.1vw">
                        <div class="num">12312312331</div>
                        <div class="name">ABBBCCC</div>
                    </div>
                </div>
                <div style="margin-top: 3.7vw;display: flex;flex-direction: column;padding-right: 0.5vw;">
                    <img style="height:8vw;" src="./pcimg/button_02.png" alt="">
                    <img style="height:8vw;" src="./pcimg/button_03.png" alt="">
                    <img style="height:8vw;" src="./pcimg/button_04.png" alt="">
                    <div style="display: flex;align-items: center;margin-top: 1.5vw;">
                        <img style="height: 4.2vw;" src="./pcimg/button_andoird.png" alt="">
                        <img style="height: 4.2vw;" src="./pcimg/button_ios.png" alt="">
                    </div>
                </div>
            </div>
        </div>

        <!-- else -->
        <div class="else">

            <!-- swiper2 -->
            <div class="swiper2">
                <div class="swiper2_box">
                    <img class="swiper2_item" src="./pcimg/banner_01.png" alt="img">
                    <img class="swiper2_item" src="./pcimg/banner_02.png" alt="img">
                    <img class="swiper2_item" src="./pcimg/banner_03.png" alt="img">
                    <img class="swiper2_item" src="./pcimg/banner_01.png" alt="img">
                    <img class="swiper2_item" src="./pcimg/banner_02.png" alt="img">
                    <img class="swiper2_item" src="./pcimg/banner_03.png" alt="img">
                </div>

                <div class="swiper2_dots">
                    <div class="swiper2_dot active_dot"></div>
                    <div class="swiper2_dot"></div>
                    <div class="swiper2_dot"></div>
                    <div class="swiper2_dot"></div>
                </div>
            </div>
            <script>
                let swiperIndex2 = 0

                const interval2 = setInterval(() => {
                    swiperIndex2++
                    if (swiperIndex2 >= 4) {
                        swiperIndex2 = 0
                    }
                    renderSwiper()
                }, 3000)

                function renderSwiper() {
                    const swiper_box = document.querySelector('.swiper2_box')
                    swiper_box.style.transform = `translateX(-${swiperIndex2 * 30}vw)`

                    const swiper_dots = document.querySelector('.swiper2_dots')
                    let str = ''
                    for (let i = 0; i < 4; i++) {
                        str += `<div class="swiper2_dot ${i == swiperIndex2 ? 'active_dot' : ''}"></div>`
                    }
                    swiper_dots.innerHTML = str
                }
            </script>

            <!-- bottom -->
            <div
                style="width: 100%;background-color: rgba(0,0,0,0.5);padding: 4vw 6vw 0 6vw;box-sizing: border-box;height: 62.5vw;">
                <img style="width: 100%;" src="./pcimg/dsf_lj.png" alt="">
            </div>
        </div>

        <script src="./js/index.js"></script>
        <script>

            function loginSuccess() {
                document.querySelector('.else').style.display = 'none'
                const items = document.querySelectorAll('.top-item')
                items.forEach(item => {
                    item.style.marginTop = '2vw'
                })
                const main = document.querySelector('.main')
                main.style.height = '100vh'
                main.style.overflowY = 'auto'
                main.style.backgroundSize = '100%'
                main.style.backgroundPositionY = '30%'
                clearInterval(interval2)

                const main_box = document.querySelector('#main_box')
                main_box.style.paddingBottom = '0'
                main_box.style.boxShadow = "-1vw 0 20vw rgba(0, 0, 255, 0.5),1vw 0 20vw rgba(0, 0, 255, 0.5)"

                main_box.innerHTML = `<iframe style="width:34vw;height:100VH;position:fixed;top:0;z-index:9;left:50%;top:50%;transform:translateX(-50%) translateY(-50%)" src="http://43.199.35.53:9000/0611/web-mobile/" frameborder="0"></iframe>`
            }
        </script>
    </div>
</body>

</html>